﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"
namespace="FT.Architecture.Example.Core.Entities.Subscriptions" assembly="FT.Architecture.Example.Core">
  <class name="FT.Architecture.Example.Core.Entities.Subscriptions.Subscription" table="subscriptions">
    <cache usage ="nonstrict-read-write"/>

    <composite-id name="Id" class="SubscriptionId" mapped="true">
      <key-many-to-one name="Human" column="Owner" class="FT.Architecture.Example.Core.Entities.Humans.IHuman"></key-many-to-one>
      <key-property name="Type" column="Type" type="NHibernate.Type.EnumStringType`1[[FT.Architecture.Example.Core.Entities.Subscriptions.SubscriptionType, FT.Architecture.Example.Core]]"></key-property>
    </composite-id>

    <!--<many-to-one name="Human" column="Owner" class="FT.Architecture.Example.Core.Entities.Humans.IHuman"></many-to-one>
    <property name="Type" column="Type" type="NHibernate.Type.EnumStringType`1[[FT.Architecture.Example.Core.Entities.Subscriptions.SubscriptionType, FT.Architecture.Example.Core]]"></property>-->

    <property name="SubscribedOn" />
    <property name="FinishOn" />
    <property name="MonthlyPrice" />


  </class>
</hibernate-mapping>